package com.otitan.la.forest.industry.controller;

import com.otitan.la.forest.industry.entity.AuditRecordsEntity;
import com.otitan.la.forest.industry.dto.AuditRecordsDTO;
import com.otitan.la.forest.industry.vo.AuditRecordsVO;
import com.otitan.la.forest.industry.service.AuditRecordsService;
import com.otitan.webapp.framework.basepro.model.DataResult;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.validation.BindingResult;
import org.springframework.web.bind.annotation.*;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;

import javax.validation.Valid;
import java.util.ArrayList;
import java.util.List;

/**
 * 审核记录
 *
 * @author jiacs
 * @email xxx
 * @date 2020-10-21 10:52:03
 */
@Slf4j
@Api(tags = "审核记录API")
@RestController
@RequestMapping("/audit/records")
public class AuditRecordsController {

    @Autowired
    private AuditRecordsService auditRecordsService;


    @ApiOperation(value = "列表查询（分页）")
    @PostMapping("/findPage/{page}/{size}")
    public DataResult<Page<AuditRecordsVO>> findPageData(@PathVariable("page") long page,
                                     @PathVariable("size") long size,
                                     @RequestBody AuditRecordsDTO auditRecords) {
        return auditRecordsService.findPageData(page, size, auditRecords);
    }


}
